package demo;

import java.io.Serializable;

public class Dept implements Serializable {

    private String name = "java";

    private  Emp emp;

    public void setEmp(Emp emp){
        this.emp = emp;
    }
    @Override
    public String toString(){
        return name +":"+emp;
    }
}
